package com.xc.mail.controller;

import com.xc.mail.pojo.PropertiesConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private PropertiesConfig propertiesConfig;

    @RequestMapping(value = "test", method = RequestMethod.GET)
    public String test(){
//		return propertiesConfig.getUsername() + ":" + propertiesConfig.getAge();
        return propertiesConfig.getToString();
    }

}
